package com.liao.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.liao.dao.PatientRandomExtractDaoImpl;
import com.liao.dao.Top10CategoryDaoImpl;
import com.liao.entity.Top10Category;

import java.util.List;

public class Top10CategoryService {
    Top10CategoryDaoImpl dao=new Top10CategoryDaoImpl();
    public String findAll() throws JsonProcessingException {
        ObjectMapper objectMapper = new ObjectMapper();
        return objectMapper.writeValueAsString(dao.findAll());
    }
}
